package com.zhuojy.equity.mall.admin.common.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@TableName("t_current_money")
public class TMoney implements Serializable {
    private static final long serialVersionUID = 3588677164828115996L;
    private Long id;

    private String contractNumber;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date billTime;

    private String collaborators;

    private BigDecimal yufuMoney;

    private BigDecimal hexiaoMoney;


    private BigDecimal cyufuMoney;

    private BigDecimal yushouMoney;
    private BigDecimal yingshouMoney;
    private BigDecimal yingshouYue;
    private BigDecimal yingfuYue;
    private BigDecimal yushouYue;

    private BigDecimal cyingshouMoney;

    private String remark;
    private String type;
    private String status;
    private String kaipiaoStatus;
    private Integer userId;
    private Integer deptId;
    private String project;
    //业务字段
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @TableField(exist = false)
    private String startTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @TableField(exist = false)
    private String endTime;

    @TableField(exist = false)
    private TUser tuser;
    @TableField(exist = false)
    private TPosition tposition;
}
